package server

import "github.com/hyperway/pkg/component"

// RegisterTransporter 注册转发器
func RegisterTransporter(name string, o interface{}) {
	if transporter, ok := o.(component.Transporter); ok {
		component.RegisterTransporter(transporter)
	}
	if initializer, ok := o.(component.Initializer); ok {
		component.RegisterInitializer(initializer)
	}
}
